//字符串就是首字母的地址
//特点：结束标志\0

#include<stdio.h>
#include<string.h>
#include<stdlib.h>

void func(char *s1,char *s2)
{
    *s1='H';
    *s2='L';
}

int main(int argc, char *argv[])
{
    char *ptr="hello world";

    int num=5;
    
    // ptr++;

    // (*ptr)='E';

    char src[100]="hello world";

    char *str=(char *)malloc(sizeof(char)*100);

    // func("hello1","hello2"); or段

    func(src,str);

    strcpy(str,"hello world");

    printf("hello world=%p\n","hello world");
    printf("ptr=%p\n",ptr);
    printf("src=%p\n",src);
    printf("str=%p\n",str);

    return 0;
}